package org.locker.domain.bo;

import org.locker.domain.Feedback;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 反馈(投诉建议)业务对象 lk_feedback
 *
 * @author winnie
 * @date 2023-10-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Feedback.class, reverseConvertGenerate = false)
public class FeedbackBo extends BaseEntity {

    /**
     * 提现ID
     */
    @NotNull(message = "提现ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型: 建议suggestion, 投诉: complain
     */
    @NotBlank(message = "类型: 建议suggestion, 投诉: complain不能为空", groups = { AddGroup.class})
    private String type;

    /**
     * 用户ID
     */
    private Long userId;

    private String userName;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 手机
     */
    @NotBlank(message = "手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 状态：pending 待处理,in_progress 处理中,resolved 已处理,
     */
    @NotBlank(message = "状态：pending 待处理,in_progress 处理中,resolved 已处理,不能为空", groups = { EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
